home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
other
/
wla_020_3.0
/
examples
/
linker_test
/
test.s
< prev
Wrap
Text File
|
2000-02-28
|
1KB
|
51 lines
;»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
; a small example showing the wla syntax
; this little program flashes the background colour
; written by ville helin <vhelin@cc.hut.fi> in 1998-2000
;»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
;»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
; includes
;»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
.INCLUDE "defines.i"
.INCDIR "../include/"
.INCLUDE "cgb_hardware.i"
.INCLUDE "nintendo_logo.i"
;»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
; main
;»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
.BANK = 0
.ORG = $100
JP MAIN
.BANK = 0
.ORG = $150
.SECTION "INIT" FREE
MAIN: DI
CALL SUM
LD SP, $FFFE
SUB A
LD ($FF00+R_IE), A ;no interrupts at all.
LD A, 144
LD ($FF00+R_WY), A ;window y.
LD A, %10000001
LD ($FF00+R_LCDC), A ;lcd control.
SUB A
_LOOP: LD ($FF00+R_BGP), A ;background palette.
INC A
JP _LOOP
.ENDS